package com.linkage.bss.crm.packagemgr.model;

import java.io.Serializable;
import java.util.Date;

public class OfferRoles implements Serializable {
	private Long offerRoleId;

	private String code;

	private Long offerSpecId;

	private String name;

	private Integer roleCd;

	private String ifHardcore;

	private Short defaultQty;

	private Short minQty;

	private Short maxQty;

	private Short compOrder;

	private Date startDt;

	private Date endDt;

	private Date createDt;

	private Date version;

	private Short leastQty;

	private String qtyRule;

	private static final long serialVersionUID = 1L;

	public Long getOfferRoleId() {
		return offerRoleId;
	}

	public void setOfferRoleId(Long offerRoleId) {
		this.offerRoleId = offerRoleId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getOfferSpecId() {
		return offerSpecId;
	}

	public void setOfferSpecId(Long offerSpecId) {
		this.offerSpecId = offerSpecId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getRoleCd() {
		return roleCd;
	}

	public void setRoleCd(Integer roleCd) {
		this.roleCd = roleCd;
	}

	public String getIfHardcore() {
		return ifHardcore;
	}

	public void setIfHardcore(String ifHardcore) {
		this.ifHardcore = ifHardcore;
	}

	public Short getDefaultQty() {
		return defaultQty;
	}

	public void setDefaultQty(Short defaultQty) {
		this.defaultQty = defaultQty;
	}

	public Short getMinQty() {
		return minQty;
	}

	public void setMinQty(Short minQty) {
		this.minQty = minQty;
	}

	public Short getMaxQty() {
		return maxQty;
	}

	public void setMaxQty(Short maxQty) {
		this.maxQty = maxQty;
	}

	public Short getCompOrder() {
		return compOrder;
	}

	public void setCompOrder(Short compOrder) {
		this.compOrder = compOrder;
	}

	public Date getStartDt() {
		return startDt;
	}

	public void setStartDt(Date startDt) {
		this.startDt = startDt;
	}

	public Date getEndDt() {
		return endDt;
	}

	public void setEndDt(Date endDt) {
		this.endDt = endDt;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getVersion() {
		return version;
	}

	public void setVersion(Date version) {
		this.version = version;
	}

	public Short getLeastQty() {
		return leastQty;
	}

	public void setLeastQty(Short leastQty) {
		this.leastQty = leastQty;
	}

	public String getQtyRule() {
		return qtyRule;
	}

	public void setQtyRule(String qtyRule) {
		this.qtyRule = qtyRule;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (!(that instanceof OfferRoles)) {
			return false;
		}
		OfferRoles other = (OfferRoles) that;
		return this.getOfferRoleId() == null ? other == null : this.getOfferRoleId().equals(other.getOfferRoleId())
						&& this.getCode() == null ? other == null : this.getCode().equals(other.getCode())
						&& this.getOfferSpecId() == null ? other == null : this.getOfferSpecId().equals(
						other.getOfferSpecId())
						&& this.getRoleCd() == null ? other == null : this.getRoleCd().equals(other.getRoleCd())
						&& this.getIfHardcore() == null ? other == null : this.getIfHardcore().equals(
						other.getIfHardcore())
						&& this.getDefaultQty() == null ? other == null : this.getDefaultQty().equals(
						other.getDefaultQty())
						&& this.getMinQty() == null ? other == null : this.getMinQty().equals(other.getMinQty())
						&& this.getMaxQty() == null ? other == null : this.getMaxQty().equals(other.getMaxQty())
						&& this.getCompOrder() == null ? other == null : this.getCompOrder().equals(
						other.getCompOrder())
						&& this.getStartDt() == null ? other == null : this.getStartDt().equals(other.getStartDt())
						&& this.getEndDt() == null ? other == null : this.getEndDt().equals(other.getEndDt())
						&& this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
						&& this.getVersion() == null ? other == null : this.getVersion().equals(other.getVersion())
						&& this.getLeastQty() == null ? other == null : this.getLeastQty().equals(other.getLeastQty())
						&& this.getQtyRule() == null ? other == null : this.getQtyRule().equals(other.getQtyRule());
	}

	@Override
	public int hashCode() {
		int hash = 23;
		if (getOfferRoleId() != null) {
			hash *= getOfferRoleId().hashCode();
		}
		if (getCode() != null) {
			hash *= getCode().hashCode();
		}
		if (getOfferSpecId() != null) {
			hash *= getOfferSpecId().hashCode();
		}
		if (getRoleCd() != null) {
			hash *= getRoleCd().hashCode();
		}
		if (getIfHardcore() != null) {
			hash *= getIfHardcore().hashCode();
		}
		if (getDefaultQty() != null) {
			hash *= getDefaultQty().hashCode();
		}
		if (getMinQty() != null) {
			hash *= getMinQty().hashCode();
		}
		if (getMaxQty() != null) {
			hash *= getMaxQty().hashCode();
		}
		if (getCompOrder() != null) {
			hash *= getCompOrder().hashCode();
		}
		if (getStartDt() != null) {
			hash *= getStartDt().hashCode();
		}
		if (getEndDt() != null) {
			hash *= getEndDt().hashCode();
		}
		if (getCreateDt() != null) {
			hash *= getCreateDt().hashCode();
		}
		if (getVersion() != null) {
			hash *= getVersion().hashCode();
		}
		if (getLeastQty() != null) {
			hash *= getLeastQty().hashCode();
		}
		if (getQtyRule() != null) {
			hash *= getQtyRule().hashCode();
		}
		return hash;
	}
}